//
//  HWIndexModel.m
//  嗨文
//
//  Created by 响当当 on 5/16/19.
//  Copyright © 2019 dongzheng. All rights reserved.
//

#import "HWIndexModel.h"

@implementation HWIndexModel
- (id)initWithDic:(NSDictionary *)dic
{
    if (self = [super init])
    {
        self.chapterCoin = IFNULL(dic[@"chapterCoin"], [NSNumber new]);
        self.chapterOrder = IFNULL(dic[@"chapterOrder"], [NSNumber new]);
        self.chapterId = IFNULL(dic[@"chapterId"], [NSNumber new]);
        self.updateTime = IFNULL(dic[@"updateTime"], [NSString string]);
        self.chapterTitle = IFNULL(dic[@"chapterTitle"], [NSString string]);
        self.isReaded = dic[@"isReaded"];
    }
    return self;
}
@end
